package cn.edu.jsu.zjj.model.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学年表
 * </p>
 *
 * @author fyt
 * @since 2024-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "sys_ay")
@ApiModel(value="Ay对象", description="学年表")
public class Ay implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学年ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "学年学期")
    private String term;

    @ApiModelProperty(value = "开始时间")
    private LocalDate createTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDate endTime;

    @ApiModelProperty(value = "操作人员")
    private String operName;

    @ApiModelProperty(value = "状态（0代表启动 1代表禁用）")
    private String status;

    @ApiModelProperty(value = "是否删除（0代表未删除 1代表已删除）")
    @TableLogic
    private Integer isDelete;


    @ApiModelProperty(value = "用户ID")
    private Long userId;

}
